﻿using UnityEngine;
using System.Collections;
using CHFramework;
using UnityEngine.UI;

public class UILoadingPanel : BaseUI
{
    public Text ProcessLabel;
    public Slider ProcessSlider;

    private void Awake()
    {
        base.CurrentUIType.PanelType = UIPanelType.Loading;
        base.CurrentUIType.ShowMode = UIPanelShowMode.Normal;
        
    }

    public override void ShowUI(float arg)
    {
        base.ShowUI(arg);
        ProcessLabel.text = string.Format("已加载:{0}%", Mathf.RoundToInt(arg));
        ProcessSlider.value = arg;
    }
}
